<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!-- Paging starts -->
<s:a href="video!list?paging.currentPage=1"> |< </s:a>
<s:if test="%{paging.currentPage>1}"><s:a href="video!list?paging.currentPage=%{paging.currentPage-1}"> << </s:a></s:if>
<s:else><<</s:else>
&nbsp;&nbsp;<s:property value="paging.currentPage" />/<s:property value="paging.totalPage" />&nbsp;&nbsp;
<s:if test="%{paging.currentPage<paging.totalPage}"><s:a href="video!list?paging.currentPage=%{paging.currentPage+1}">>></s:a></s:if>
<s:else>>></s:else>
<s:a href="video!list?paging.currentPage=%{paging.totalPage}"> >| </s:a>
<!-- Paging ends -->

<table border="1" width="100%">
	<tr>
		<th>
			类型
		</th>
		<th>
			电影
		</th>
		<th>
			类型
		</th>
		<th>
			长度
		</th>
		
		<th>
			提供者
		</th>
		
		<th>
			在线观看地址
		</th>
	</tr>
	<s:iterator value="videos" status="stat">
		<tr>
			<td>
				<s:a href="###" id="videoedit%{id}">
					<s:property value="displayName" />
				</s:a>
				<script>$("#videoedit<s:property value="id"/>").sabrina({ title: "修改视频", height:"500", width:"600", iframe: "video!edit?video.id=<s:property value="id"/>"});</script>
			</td>
			<td>
				<s:property value="movie.displayName" />
			</td>
			<td>
				<s:property value="typeName" />
			</td>
			<td>
				<s:property value="length" escape="false"/>
			</td>
			<td>
				<s:property value="provider" escape="false"/>
			</td>
			<td>
				<a target="_blank" href="<s:property value="url" escape="false"/>"><s:property value="url" escape="false"/></a>
			</td>
		</tr>
	</s:iterator>
</table>

